package com.bicon.botu.mall.goods.controller;

import com.bicon.botu.core.base.common.controller.BaseController;
import com.bicon.botu.core.base.common.entity.BaseResult;
import com.bicon.botu.mall.goods.dto.TracePlanDTO;
import com.bicon.botu.mall.goods.service.TracePlanService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * <p> 定制方案管理
 * </p>
 *
 * @author tao.zeng.
 * @since 2018/3/15.
 */
@RestController
@RequestMapping("/V2.0.0/web/trace-plan")
public class TracePlanController extends BaseController {


    /**
     * 定制方案管理服务
     */
    @Autowired
    private TracePlanService tracePlanService;

    @GetMapping("/suit-list")
    public BaseResult getSuitList() {
        List<TracePlanDTO> planList = tracePlanService.getTracePlanList();
        return sendResult200(planList);
    }
}
